package com.atguigu.yygh.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.HashMap;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/27 23:04
 */
@FeignClient(value = "service-cmn") // value值是被调用方的应用名
public interface DictFeignClient {
    @GetMapping("/admin/cmn/{value}")
    public String getNameByValue(@PathVariable("value") Long value);

    @GetMapping("/admin/cmn/{dictCode}/{value}")
    public String getNameByDictCodeAndValue(@PathVariable("dictCode")String dictCode, @PathVariable("value")Long value);
}
